package in.smartride.dataInterface.userdata;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class UserPreferences {

	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Long id;

	@Persistent
	private int upperAge;

	@Persistent
	private int lowerAge;

	// 0 mean any gender 1 means males only 2 means females only
	@Persistent
	private int gender;

	@Persistent
	private String uId;

	@Persistent
	private int wait;

	/*******************************************************
	 *constructer
	 ******************************************************/
	public UserPreferences(String uId) {
		this.uId = uId;
	}

	/*******************************************************
	 *getter setters
	 ********************************************************/
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public int getUpperAge() {
		return upperAge;
	}

	public void setUpperAge(int upperAge) {
		this.upperAge = upperAge;
	}

	public int getLowerAge() {
		return lowerAge;
	}

	public void setLowerAge(int lowerAge) {
		this.lowerAge = lowerAge;
	}

	public int getGender() {
		return gender;
	}

	public void setGender(int gender) {
		this.gender = gender;
	}

	public String getuId() {
		return uId;
	}

	public void setuId(String uId) {
		this.uId = uId;
	}

	public int getWait() {
		return wait;
	}

	public void setLocation(int wait) {
		this.wait = wait;
	}

}